package com.chatdating;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.sql.DataSource;


@EnableAsync
@SpringBootApplication (scanBasePackages = {"com.chatdating"})
@EnableTransactionManagement
@EnableScheduling
public class  ChatDatingApplication {

    public static void main(String[] args) {

        SpringApplication.run(ChatDatingApplication.class, args);
    }


//    @Bean
//    public DataSourceTransactionManager transactionManager(DataSource dataSource) {
//        return new DataSourceTransactionManager(dataSource);
//    }
}
